package com.woniu.product.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author lydia
 * @since 2023-02-16
 */
@Data
@Getter
@TableName("t_category")
@ApiModel(value = "Category对象", description = "")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分类id")
    private String id;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("父分类Id;(顶级类目填0)")
    private String parentId;

    @ApiModelProperty("父类分类名称")
    private String parentName;

    @ApiModelProperty("是否为父节点;(0-否，1-是)")
    private String isParent;

    @ApiModelProperty("创建时间")
    private Date createdTime;

    @ApiModelProperty("更新时间")
    private Date updatedTime;

    /** 子类菜单数据 */
    @TableField(exist = false)
    private List<Category> children;
}
